﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200129B RID: 4763
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingGiveUpGameScRsp : IMessage<SwordTrainingGiveUpGameScRsp>, IMessage, IEquatable<SwordTrainingGiveUpGameScRsp>, IDeepCloneable<SwordTrainingGiveUpGameScRsp>, IBufferMessage
	{
		// Token: 0x17003C54 RID: 15444
		// (get) Token: 0x0600D58D RID: 54669 RVA: 0x0023E544 File Offset: 0x0023C744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingGiveUpGameScRsp> Parser
		{
			get
			{
				return SwordTrainingGiveUpGameScRsp._parser;
			}
		}

		// Token: 0x17003C55 RID: 15445
		// (get) Token: 0x0600D58E RID: 54670 RVA: 0x0023E54B File Offset: 0x0023C74B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingGiveUpGameScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003C56 RID: 15446
		// (get) Token: 0x0600D58F RID: 54671 RVA: 0x0023E55D File Offset: 0x0023C75D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingGiveUpGameScRsp.Descriptor;
			}
		}

		// Token: 0x0600D590 RID: 54672 RVA: 0x0023E564 File Offset: 0x0023C764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingGiveUpGameScRsp()
		{
		}

		// Token: 0x0600D591 RID: 54673 RVA: 0x0023E56C File Offset: 0x0023C76C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingGiveUpGameScRsp(SwordTrainingGiveUpGameScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D592 RID: 54674 RVA: 0x0023E591 File Offset: 0x0023C791
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingGiveUpGameScRsp Clone()
		{
			return new SwordTrainingGiveUpGameScRsp(this);
		}

		// Token: 0x17003C57 RID: 15447
		// (get) Token: 0x0600D593 RID: 54675 RVA: 0x0023E599 File Offset: 0x0023C799
		// (set) Token: 0x0600D594 RID: 54676 RVA: 0x0023E5A1 File Offset: 0x0023C7A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600D595 RID: 54677 RVA: 0x0023E5AA File Offset: 0x0023C7AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingGiveUpGameScRsp);
		}

		// Token: 0x0600D596 RID: 54678 RVA: 0x0023E5B8 File Offset: 0x0023C7B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingGiveUpGameScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D597 RID: 54679 RVA: 0x0023E5E8 File Offset: 0x0023C7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D598 RID: 54680 RVA: 0x0023E627 File Offset: 0x0023C827
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D599 RID: 54681 RVA: 0x0023E62F File Offset: 0x0023C82F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D59A RID: 54682 RVA: 0x0023E638 File Offset: 0x0023C838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D59B RID: 54683 RVA: 0x0023E66C File Offset: 0x0023C86C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D59C RID: 54684 RVA: 0x0023E6AA File Offset: 0x0023C8AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingGiveUpGameScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D59D RID: 54685 RVA: 0x0023E6DB File Offset: 0x0023C8DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D59E RID: 54686 RVA: 0x0023E6E4 File Offset: 0x0023C8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 120U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005560 RID: 21856
		private static readonly MessageParser<SwordTrainingGiveUpGameScRsp> _parser = new MessageParser<SwordTrainingGiveUpGameScRsp>(() => new SwordTrainingGiveUpGameScRsp());

		// Token: 0x04005561 RID: 21857
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005562 RID: 21858
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04005563 RID: 21859
		private uint retcode_;
	}
}
